<div id="page_content">
<h1>Products</h1>

<table class="kp_table">
  <tr>
    <th>Name</th>
       <th></th>
    <th></th>
    <th></th>
  </tr>

<% @products.each do |product| %>
  <tr>
    
        <td><%= link_to product.name, product %></td>
    <td><%= link_to 'Edit', edit_product_path(product) %></td>
    <td><%#= link_to 'Delete', product, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Product', new_product_path %>
</div>